package chapter02

object Test16_Array3 {
  def main(args: Array[String]): Unit = {
    val array = Array.ofDim[Int](2, 3)
    array(0) = Array(1,2,3)
    array(1) = Array(4,5,6)
    array.foreach(_.foreach(println(_)))
    for(i<-array){
      for(j<-i){
        println(j)
      }
    }
  }
}
